package com.hzncc.flowable_diboot.payment.vo;

import com.diboot.core.binding.annotation.*;
import com.diboot.core.vo.LabelValue;
import com.diboot.tenant.entity.IamTenant;
import com.hzncc.flowable_diboot.payment.entity.SapPaymentContract;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;

/**
* 合同收款 VO定义
* @author MyName
* @version 1.0
* @date 2024-10-30
* Copyright © MyCorp
*/
@Getter @Setter @Accessors(chain = true)
public class PaymentContractDetailVO extends PaymentContractListVO  {
private static final long serialVersionUID = 1808889282725400846L;

    /**
    * 租户 关联信息
    */
    @BindField(entity = IamTenant.class, field = "name", condition = "this.tenant_id = id")
    private String tenantIdLabel;

    /**
    * 公司合同类型 关联字典选项
    */
    @BindDict(type = "companyContractsType", field = "companyContractsType")
    private LabelValue companyContractsTypeLabel;

    /**
     * sap合同收款
     */
    @BindEntityList(entity = SapPaymentContract.class,condition = "this.id = payment_contract_id",deepBind = true)
    private List<SapPaymentContractDetailVO> sapPaymentContractList;

    /**
     * 当前任务ID
     */
    private String taskId;

}